/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package desu.nya.animepersistance.dao.impl;

import desu.nya.animepersistance.dao.AnimeDao;
import desu.nya.animepersistance.model.Anime;
import desu.nya.animepersistance.utils.AnimeHibDaoSupport;
import java.util.List;
import org.springframework.stereotype.Repository;

/**
 *
 * @author ievstratov
 */
@Repository("AnimeDAO")
public class AnimeDaoImpl extends AnimeHibDaoSupport implements AnimeDao {

    @Override
    public void save(Anime anime) {
        getHibernateTemplate().update(anime);
    }

    @Override
    public void update(Anime anime) {
        getHibernateTemplate().update(anime);
    }

    @Override
    public void delete(Anime anime) {
        getHibernateTemplate().update(anime);
    }

    @Override
    public List<Anime> findAll() {
        throw new UnsupportedOperationException("Not supported yet.");
    }    

    @Override
    public List<Anime> findByMask(long mask) {
        throw new UnsupportedOperationException("Not supported yet.");
    }
}
